ADP\BaseVersion\Includes\WC\WcCartItemFacade D

Total Complexity 180
Dependencies 16
Dependents 28
Total lines 1,272
Lines of code 577
Logical lines of code 302
Comment lines 342
Methods 75
Properties 30

Methods 75

Method Rating Maintainability Complexity Lines of code
createCommonItem()
C
32 29 102
__construct()
C
38 29 52
generateCartId()
A
51 11 25
addAttribute()
S
58 5 17
createAutoAddItem()
S
51 4 26
sanitize()
S
51 4 26
createFreeItem()
S
51 4 26
createFromProduct()
S
49 3 33
removeAttribute()
S
62 4 11
createItem()
S
67 3 9
getOurData()
S
57 1 18
getClearData()
S
59 1 16
getInitialCustomPrice()
S
78 2 3
isFreeItem()
S
78 2 3
isAutoAddItem()
S
78 2 3
setHistory()
S
74 2 5
setDiscounts()
S
74 2 5
setInitialCustomPrice()
S
78 2 3
getRegularPriceWithoutTax()
S
78 2 3
getOriginalPriceWithoutTax()
S
78 2 3
getOriginalPrice()
S
78 2 3
getOriginalPriceTax()
S
78 2 3
getRegularPriceTax()
S
78 2 3
getExactSubtotalTax()
S
74 2 4
setCurrency()
S
74 2 5
setFreeCartItemHash()
S
74 2 5
setAutoAddCartItemHash()
S
74 2 5
isImmutable()
S
78 2 3
wcGetCartItemDataHash()
S
69 2 6
unpackCurrencyObject()
S
69 2 6
packCurrencyObject()
S
65 2 10
getSubtotal()
S
82 1 3
getProduct()
S
82 1 3
setReplaceWithCoupon()
S
80 1 3
getReplaceWithCoupon()
S
80 1 3
setReplaceCouponCode()
S
80 1 3
getReplaceCouponCode()
S
82 1 3
getCurrency()
S
82 1 3
getQty()
S
82 1 3
setAssociatedHash()
S
80 1 3
getAssociatedHash()
S
82 1 3
getData()
S
79 1 3
getFreeCartItemHash()
S
82 1 3
getNewPrice()
S
82 1 3
getAutoAddCartItemHash()
S
82 1 3
setSelectedFreeCartItem()
S
81 1 3
isSelectedFreeCartItem()
S
82 1 3
setAutoAddCanBeRemoved()
S
81 1 3
autoAddCanBeRemoved()
S
82 1 3
isAffected()
S
80 1 3
__clone()
S
81 1 3
isVisible()
S
82 1 3
setQty()
S
80 1 3
setNewPrice()
S
76 1 4
setOriginalPriceWithoutTax()
S
79 1 3
isClone()
S
80 1 3
getOriginalKey()
S
82 1 3
setOriginalKey()
S
81 1 3
getCartItemData()
S
73 1 5
getHistory()
S
82 1 3
withContext()
S
81 1 3
deleteThirdPartyData()
S
80 1 3
setThirdPartyData()
S
80 1 3
getThirdPartyData()
S
82 1 3
getSubtotalTax()
S
82 1 3
setOriginalPrice()
S
79 1 3
getVariation()
S
82 1 3
setOriginalPriceTax()
S
79 1 3
getVariationId()
S
82 1 3
setRegularPriceWithoutTax()
S
79 1 3
getProductId()
S
82 1 3
setRegularPriceTax()
S
79 1 3
setKey()
S
81 1 3
getKey()
S
82 1 3
getDiscounts()
S
82 1 3